package core.discount.model;

import java.io.Serializable;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;

@Entity
@Table(name="coupon")
public class Coupon implements Serializable
{
	private static final long serialVersionUID = -8767337896773261247L;
	
	private Long uuid;
	private String couponcode ;
	private float amount;
	private boolean used ;
	/**
	 * @return the uuid
	 */
	@Id
	@GeneratedValue
	@Column(name="uuid")
	public Long getUuid() {
		return uuid;
	}
	/**
	 * @param uuid the uuid to set
	 */
	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}
	/**
	 * @return the couponcode
	 */
	@Column(name="couponcode")
	public String getCouponcode() {
		return couponcode;
	}
	/**
	 * @param couponcode the couponcode to set
	 */
	public void setCouponcode(String couponcode) {
		this.couponcode = couponcode;
	}
	/**
	 * @return the amount
	 */
	@Column(name="amount")
	public float getAmount() {
		return amount;
	}
	/**
	 * @param amount the amount to set
	 */
	public void setAmount(float amount) {
		this.amount = amount;
	}
	/**
	 * @return the used
	 */
	@Column(name="used")
	public boolean isUsed() {
		return used;
	}
	/**
	 * @param used the used to set
	 */
	public void setUsed(boolean used) {
		this.used = used;
	}
	
	
}
